package com.gcxy.dto.Pen;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * @auther:韦林鹏 `*@since:2023/12/21 20 33
 * @description:
 */
@Data
public class UpdateDto {
    @NotEmpty(message = "圈舍名称不为空")
    @Length(max = 50,message = "圈舍名称最长为50")
    private String penName;
    @NotNull(message = "牧场名称不为空")
    private Integer ranchId;
    @NotNull(message = "圈舍id不为空")
    private Integer penId;
}
